Package com.cisco.pt.ipc.sim.impl
Class NATProcessImpl
java.lang.Object
com.cisco.pt.ipc.impl.IPCObjectImpl
com.cisco.pt.ipc.sim.impl.ProcessImpl
com.cisco.pt.ipc.sim.impl.NATProcessImpl
- All Implemented Interfaces:
IPCObject,NATProcess,Process
- Direct Known Subclasses:
AsaNatProcessImpl,AsaNatv6ProcessImpl
Information provided by the PKI file:
\class NatProcess
\brief NatProcess handles and manipulates the NAT process.
\example network().getDevice("Router0").getProcess("NatProcess")
- Author:
- Auto-generated
-
Field Summary
Fields inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
accessMessage, ipcFactory, packetTracerSession -
Constructor Summary
ConstructorsConstructorDescriptionNATProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage) -
Method Summary
Modifier and TypeMethodDescriptionbooleanaddNatPool(String poolName) Information provided by the PKI file:voidInformation provided by the PKI file:getInSrcList(String aclId) Information provided by the PKI file:getInSrcListAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:getInSrcStaticAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:getNatPool(String poolName) Information provided by the PKI file:getNatPoolAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:Information provided by the PKI file:getOutSrcList(String aclId) Information provided by the PKI file:getOutSrcListAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:getOutSrcStaticAt(int index) Information provided by the PKI file:intInformation provided by the PKI file:booleanremoveInSrcList(String aclId) Information provided by the PKI file:booleanremoveNatPool(String poolName) Information provided by the PKI file:booleanremoveOutSrcList(String aclId) Information provided by the PKI file:Methods inherited from class com.cisco.pt.ipc.sim.impl.ProcessImpl
getOwnerDeviceMethods inherited from class com.cisco.pt.ipc.impl.IPCObjectImpl
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSession, sendMessage, sendMessageWithReturn, translateToCommandStatusStringPairMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.cisco.pt.ipc.IPCObject
getAccessMessage, getClassName, getFactory, getObjectUUID, getPacketTracerSessionMethods inherited from interface com.cisco.pt.ipc.sim.Process
getOwnerDevice
-
Constructor Details
-
NATProcessImpl
public NATProcessImpl(IPCFactory ipcFactory, PacketTracerSession packetTracerSession, IPCMessageLTV accessMessage)
-
-
Method Details
-
addNatPool
Information provided by the PKI file:
\brief Adds a NAT pool with the specified name. \param poolName, the name for the NAT pool. \return bool, true if successful, otherwise false.- Specified by:
addNatPoolin interfaceNATProcess- Parameters:
poolName- Takes in a parameter of poolName- Returns:
- boolean Returns a boolean
-
getNatPool
Information provided by the PKI file:
\brief Returns the NAT pool with the specified name. \param poolName, the name of the NAT pool of interest. \return NatPool, the NatPool object with the specified name.- Specified by:
getNatPoolin interfaceNATProcess- Parameters:
poolName- Takes in a parameter of poolName- Returns:
- NATPool Returns a NATPool
-
getNatPoolAt
Information provided by the PKI file:
\brief Returns the NAT pool at the specified index. \param index, the index of the NAT pool of interest. \return NatPool, the NatPool object at the specified index.- Specified by:
getNatPoolAtin interfaceNATProcess- Parameters:
index- Takes in a parameter of index- Returns:
- NATPool Returns a NATPool
-
removeNatPool
Information provided by the PKI file:
\brief Removes the NAT pool with the specified name. \param poolName, the name of the NAT pool. \return bool, true if successful, otherwise false.- Specified by:
removeNatPoolin interfaceNATProcess- Parameters:
poolName- Takes in a parameter of poolName- Returns:
- boolean Returns a boolean
-
getNatPoolCount
public int getNatPoolCount()Information provided by the PKI file:
\brief Returns the number of NAT pools. \return int, the number of NAT pools.- Specified by:
getNatPoolCountin interfaceNATProcess- Returns:
- int Returns a int
-
getInSrcStaticCount
public int getInSrcStaticCount()Information provided by the PKI file:
\brief Returns the number of inside source static entries. \return int, the number of inside source static entries.- Specified by:
getInSrcStaticCountin interfaceNATProcess- Returns:
- int Returns a int
-
getOutSrcStaticCount
public int getOutSrcStaticCount()Information provided by the PKI file:
\brief Returns the number of outside source static entries. \return int, the number of outside source static entries.- Specified by:
getOutSrcStaticCountin interfaceNATProcess- Returns:
- int Returns a int
-
getInSrcStaticAt
Information provided by the PKI file:
\brief Returns the inside source static entry at the specified index. \param index, the index of the inside source static entry of interest. \return NatEntry, the NatEntry object at the specified index.- Specified by:
getInSrcStaticAtin interfaceNATProcess- Parameters:
index- Takes in a parameter of index- Returns:
- NATEntry Returns a NATEntry
-
getOutSrcStaticAt
Information provided by the PKI file:
\brief Returns the inside source static entry at the specified index. \param index, the index of the inside source static entry of interest. \return NatEntry, the NatEntry object at the specified index.- Specified by:
getOutSrcStaticAtin interfaceNATProcess- Parameters:
index- Takes in a parameter of index- Returns:
- NATEntry Returns a NATEntry
-
clearAllTranslations
public void clearAllTranslations()Information provided by the PKI file:
\brief Clears all NAT translations.- Specified by:
clearAllTranslationsin interfaceNATProcess
-
removeInSrcList
Information provided by the PKI file:
\brief Removes the inside source list entry with the specified ACL ID. \param aclId, the ID of the ACL of interest. \return bool, true if successful, otherwise false.- Specified by:
removeInSrcListin interfaceNATProcess- Parameters:
aclId- Takes in a parameter of aclId- Returns:
- boolean Returns a boolean
-
removeOutSrcList
Information provided by the PKI file:
\brief Removes the outside source list entry with the specified ACL ID. \param aclId, the ID of the ACL of interest. \return bool, true if successful, otherwise false.- Specified by:
removeOutSrcListin interfaceNATProcess- Parameters:
aclId- Takes in a parameter of aclId- Returns:
- boolean Returns a boolean
-
getInSrcList
Information provided by the PKI file:
\brief Returns the inside source list entry with the specified ACL ID. \param aclId, the ID of the ACL of interest. \return NatEntry, the NatEntry object with the specified ACL ID.- Specified by:
getInSrcListin interfaceNATProcess- Parameters:
aclId- Takes in a parameter of aclId- Returns:
- NATList Returns a NATList
-
getOutSrcList
Information provided by the PKI file:
\brief Returns the outside source list entry with the specified ACL ID. \param aclId, the ID of the ACL of interest. \return NatEntry, the NatEntry object with the specified ACL ID.- Specified by:
getOutSrcListin interfaceNATProcess- Parameters:
aclId- Takes in a parameter of aclId- Returns:
- NATList Returns a NATList
-
getInSrcListAt
Information provided by the PKI file:
\brief Returns the inside source list entry at the specified index. \param index, the index of the inside source list entry of interest. \return NatEntry, the NatEntry object at the specified index.- Specified by:
getInSrcListAtin interfaceNATProcess- Parameters:
index- Takes in a parameter of index- Returns:
- NATList Returns a NATList
-
getOutSrcListAt
Information provided by the PKI file:
\brief Returns the outside source list entry at the specified index. \param index, the index of the outside source list entry of interest. \return NatEntry, the NatEntry object at the specified index.- Specified by:
getOutSrcListAtin interfaceNATProcess- Parameters:
index- Takes in a parameter of index- Returns:
- NATList Returns a NATList
-
getInSrcListCount
public int getInSrcListCount()Information provided by the PKI file:
\brief Returns the number of inside source list entries. \return int, the number of inside source list entries.- Specified by:
getInSrcListCountin interfaceNATProcess- Returns:
- int Returns a int
-
getOutSrcListCount
public int getOutSrcListCount()Information provided by the PKI file:
\brief Returns the number of outside source list entries. \return int, the number of outside source list entries.- Specified by:
getOutSrcListCountin interfaceNATProcess- Returns:
- int Returns a int
-
getNatTable
Information provided by the PKI file:
\brief Returns the NAT table. \return NatTable, the NatTable object.- Specified by:
getNatTablein interfaceNATProcess- Returns:
- NATTable Returns a NATTable
-